/**
* @file main.c
RGB：PA1
LED：PA2
OLED：SCL-PB8，SDA-PB9

* @date 2023年8月31日
*/
#include "hardware.h"


int main(void)
{

	hardware_Init();
	while (1)
	{
		WS2812B_send(0X00FF00);
		delay_ms(500);
		
		WS2812B_send(0X7FFF00);
		delay_ms(500);
		
		WS2812B_send(0XFFFF00);
		delay_ms(500);	
		
		WS2812B_send(0XFF0000);
		delay_ms(500);
		
		WS2812B_send(0XFF00FF);
		delay_ms(500);
				
		WS2812B_send(0X0000FF);
		delay_ms(500);
				
		WS2812B_send(0X008BFF);
		delay_ms(500);
				
		WS2812B_send(0XFFFFFF);
		delay_ms(500);
		
		WS2812B_send(0X000000);
		delay_ms(500);
	}
}


